#ifndef EXPORTTHREAD_H
#define EXPORTTHREAD_H

#include <QObject>
#include <QThread>

class ExportThread : public QThread
{
    Q_OBJECT
public:
    explicit ExportThread(const QString &text, const QString &filePath, QObject *parent = nullptr)
        : QThread(parent), m_text(text), m_filePath(filePath) {}

protected:
    void run() override;


signals:
    void progressChanged(int percent);       // 进度更新信号
    void exportFinished(bool success);       // 导出完成信号

private:
    QString m_text;
    QString m_filePath;
};

#endif // EXPORTTHREAD_H
